IPOcto Residential Proxies come with a built-in Ad Blocking feature that allows you to block ads and trackers on the websites you visit. This feature is especially useful when performing any browser-based tasks. Enabling it can block unnecessary content, saving you both time and bandwidth.
When this feature is enabled, most popular ad networks will fail to load.
Enable Ad Blocking
To enable ad blocking, add the adblock-1
parameter to your proxy password.
Example
Below are examples of using the built-in Adblock feature in different programming languages: cURL, Python, and JavaScript.
CURL:
curl -x http://testuser:testpassword_country-US_session-sgn34f3e_lifetime-10_adblock-1@proxy.ipocto.com:1000 https://www.ipocto.com
Python:
import requests proxies = { "http": "http://testuser:testpassword_country-US_session-sgn34f3e_lifetime-10_adblock-1@proxy.ipocto.com", } response = requests.get("https://www.ipocto.com", proxies=proxies) print(response.text) proxies = { "http": "http://testuser:testpassword_country-US_hardsession-JS9nsq2n_adblock-1@proxy.ipocto.com:1000", } response = requests.get("https://www.ipocto.com", proxies=proxies) print(response.text)
JavaScript:
const fetch = require('node-fetch'); const proxyUrl = 'http://testuser:testpassword_country-US_session-sgn34f3e_lifetime-10@proxy.ipocto.com:1000'; const url = 'https://www.ipocto.com'; fetch(url, { proxy: proxyUrl }) .then(res => res.text()) .then(body => console.log(body)); const proxyUrl2 = 'http://testuser:testpassword_country-US_hardsession-JS9nsq2n@proxy.ipocto.com:1000'; fetch(url, { proxy: proxyUrl2 }) .then(res => res.text()) .then(body => console.log(body));
ℹ️ Please note: Our proxy generator can quickly create it for you~